<%@page session="false" contentType="text/html"
	pageEncoding="ISO-8859-1"
	import="java.util.*,javax.portlet.*,com.ibm.iocc67.*"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>
<%@taglib
	uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portlet-client-model"
	prefix="portlet-client-model"%>
<portlet:defineObjects />
<portlet-client-model:init>
	<portlet-client-model:require module="ibm.portal.xml.*" />
	<portlet-client-model:require module="ibm.portal.portlet.*" />
</portlet-client-model:init>
<!-- dojo parser call -->
<script type="text/javascript">
dojo.addOnLoad( function(){
	if(djConfig.parseOnLoad != true){
	   if(dojo.byId("widgetContainer_<portlet:namespace/>") != null)
		dojo.parser.parse(dojo.byId("widgetContainer_<portlet:namespace/>"));
	   else if(dojo.byId("mobileWidgetContainer_<portlet:namespace/>") != null)	
	    dojox.mobile.parser.parse(dojo.byId("mobileWidgetContainer_<portlet:namespace/>")); 
	}
});
</script>
<!-- end dojo parser call -->

<!-- global JavaScript portlet object creation -->
<% final String PORTLET_CONTEXT = renderResponse.encodeURL( renderRequest.getContextPath() ); %>

<script type="text/javascript">
    dojo.registerModulePath("portlet.namespace_da9095d444","<%=PORTLET_CONTEXT%>/js/portlet/namespace_da9095d444");

    dojo.require("portlet.namespace_da9095d444.Portlet");

    // A global variable to be used in parent jsp files.
    var portlet_<portlet:namespace/>;
    
    dojo.addOnLoad( function() {
      portlet_<portlet:namespace/> = new portlet.namespace_da9095d444.Portlet( {
        namespace   : "<portlet:namespace/>",
        contextPath : "<%=PORTLET_CONTEXT%>",
        actionUrl   : "<portlet:actionURL/>",
        renderUrl   : "<portlet:renderURL/>",
        remoteUser  : "<%= renderRequest.getRemoteUser() %>",
        portletMode : "<%= renderRequest.getPortletMode().toString() %>",
        windowState : "<%= renderRequest.getWindowState().toString() %>",
        scheme      : "<%= renderRequest.getScheme() %>"
      } );
    } );
</script>
<!-- end global JavaScript portlet object creation -->


<!-- include PortletHelper class and create object -->
<script type="text/javascript">
dojo.require("portlet.namespace_da9095d444.portlethelper.Iocc672PortletView_Tablets");//The initial path segment portlet.namespace_da9095d444 is already registerd.

//the portletHelper object may be used in writing the business logic related to JavaScript for this portlet
//and its methods can be called in the format: portletHelper_<portlet:namespace/>.handler(argsToPass);
var portletHelper_<portlet:namespace/>;

dojo.addOnLoad( function() {
      portletHelper_<portlet:namespace/> = new portlet.namespace_da9095d444.portlethelper.Iocc672PortletView_Tablets({portlet: portlet_<portlet:namespace/>});
} );
</script>
<!-- end include PortletHelper class and create object -->


<%
	com.ibm.iocc67.Iocc672PortletSessionBean sessionBean = (com.ibm.iocc67.Iocc672PortletSessionBean)renderRequest.getPortletSession().getAttribute(com.ibm.iocc67.Iocc672Portlet.SESSION_BEAN);
%>


<DIV style="margin: 6px">

	<H3 style="margin-bottom: 3px">Welcome!</H3>
	This is a sample view mode page. You have to edit this page to
	customize it for your own use.<BR>
	<H3 style="margin-bottom: 3px">Order entry</H3>
	This is a sample form to test action handling.

	<DIV style="margin: 12px; margin-bottom: 36px">
		<% /******** Start of sample code ********/ %>
		<%
	String formText = sessionBean.getFormText();
	if( formText.length()>0 ) {
		%>
		Order details for order id "<%=formText%>" should be displayed here.
		<%
	}
	%>
		<FORM method="POST" action="<portlet:actionURL/>">
			<LABEL for="<%=com.ibm.iocc67.Iocc672Portlet.FORM_TEXT%>">Enter
				Order id:</LABEL><BR> <INPUT
				name="<%=com.ibm.iocc67.Iocc672Portlet.FORM_TEXT%>" type="text" />
			<INPUT name="<%=com.ibm.iocc67.Iocc672Portlet.FORM_SUBMIT%>"
				type="submit" value="Submit" />
		</FORM>
		<% /******** End of sample code *********/ %>
	</DIV>

</DIV>
<div id="mobileWidgetContainer_<portlet:namespace/>"></div>